package com.kgc.smbms.service;

import com.github.pagehelper.PageInfo;
import com.kgc.smbms.entity.User;

import java.util.List;

public interface UserService {
    List<User> getUserByCondition(String userName, Integer userRole);

    User login(String loginparam, String passWord);

    User getUserByid(int id);

    boolean check(String type, String param);

    boolean add(User user);

    boolean update(User user);

    boolean delete(int id);

    boolean checkPassWord(Integer id, String oldPass);

    boolean updatePassWord(Integer id, String newPassword);
}
